package com.cskaoyan.bean.chaosbean.vxorder.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author jackX
 * @datetime 2022/12/31 20:27
 * @description: TODO:
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ListVO<T> {
    /**
     * total : 333
     * pages : 34
     * limit : 10
     * page : 5
     * list : [{"orderStatusText":"已收货","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231382514","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":456,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":373,"handleOption":{"cancel":false,"delete":true,"pay":false,"comment":true,"confirm":false,"refund":false,"rebuy":true,"aftersale":true}},{"orderStatusText":"已付款","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231722899","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":457,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":374,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}},{"orderStatusText":"已付款","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231172737","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":458,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":375,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}},{"orderStatusText":"已付款","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231026464","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":459,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":376,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}},{"orderStatusText":"已付款","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231751785","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":460,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":377,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}},{"orderStatusText":"已付款","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231184434","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":453,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":370,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}},{"orderStatusText":"已付款","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231243452","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":454,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":371,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}},{"orderStatusText":"已付款","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231667438","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":455,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":372,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}},{"orderStatusText":"已付款","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231737660","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":449,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":366,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}},{"orderStatusText":"已付款","aftersaleStatus":0,"isGroupin":false,"orderSn":"20221231007587","actualPrice":293327,"goodsList":[{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":450,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}],"id":367,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}}]
     */
    private int total;
    private int pages;
    private int limit;
    private int page;
    private List<T> list;
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class ListBean {
        /**
         * orderStatusText : 已收货
         * aftersaleStatus : 0
         * isGroupin : false
         * orderSn : 20221231382514
         * actualPrice : 293327.0
         * goodsList : [{"number":2,"picUrl":"http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png","price":199,"id":456,"goodsName":"舒适安睡复合羽绒枕","specifications":["标准"]}]
         * id : 373
         * handleOption : {"cancel":false,"delete":true,"pay":false,"comment":true,"confirm":false,"refund":false,"rebuy":true,"aftersale":true}
         */
        private String orderStatusText;
        //售后状态
        private Integer aftersaleStatus;
        private Boolean isGroupin;
        //订单编号
        private String orderSn;
        //实付价格
        private Double actualPrice;
        private Integer id;
        private HandleOptionBean handleOption;
        private List<GoodsListBean> goodsList;
        @AllArgsConstructor
        @NoArgsConstructor
        @Data
        public static class HandleOptionBean {
            /**
             * cancel : false
             * delete : true
             * pay : false
             * comment : true
             * confirm : false
             * refund : false
             * rebuy : true
             * aftersale : true
             */
            private Boolean cancel;
            private Boolean delete;
            private Boolean pay;
            private Boolean comment;
            private Boolean confirm;
            private Boolean refund;
            private Boolean rebuy;
            private Boolean aftersale;

        }
        @AllArgsConstructor
        @NoArgsConstructor
        @Data
        public static class GoodsListBean {
            /**
             * number : 2
             * picUrl : http://yanxuan.nosdn.127.net/29bc800b9f1fa551bc3cd47b10e2a799.png
             * price : 199.0
             * id : 456
             * goodsName : 舒适安睡复合羽绒枕
             * specifications : ["标准"]
             */
            private Integer number;
            private String picUrl;
            private Double price;
            private Integer id;
            private String goodsName;
            private String[] specifications;
        }
    }
}
